import homePage from "@/views/homePage.vue"
import projectPage from "@/views/projectPage.vue"
import blogPage from "@/views/blogPage.vue"
import articlesPage from "@/views/articlesPage.vue"

import article from "@/components/blog-components/article.vue"
import { projectRoute } from "./projectRoute/projectRoute"
// 导出路由配置数组
export const routes = [
  {
    path: "/",
    name: "首页",
    component: homePage,
    children: [
      {
        path: "/",
        name: "Welcome to my blog",
        component: blogPage

      },
      {
        path: "/articles",
        name: "文章",
        component: articlesPage
      },
      {
        path: "/article",
        name: "文",
        component: article
      },
      {
        path: "/project",
        name: "项目",
        component: projectPage
      }
    ]
  },

  ...projectRoute
]

// 主页路由
export const homeRoute = [
  {
    path: "/",
    name: "首页",
  },
  {
    path: "/articles",
    name: "文章",
  },
  {
    path: "/project",
    name: "项目",
  },
]

